]> dgit.raspbian.org Git - gnome-shell.git/commit
panelMenu: Fix keynav of menu-less buttons
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 8 Mar 2023 03:48:05 +0000 (04:48 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 17 Apr 2023 20:09:56 +0000 (20:09 +0000)
commitecb274cee066591591127e03e10a582e9f2c0397
tree821451cab41351fa44133693cdce656c9136746b
parentcde7d44a28688cd925bac45ebfa2bb0e7dd46860
panelMenu: Fix keynav of menu-less buttons

The left/right navigation between top bar buttons is usually
handled by a key-press handler on the button's menu.

However when a DummyMenu is used, the button itself serves as
fake menu actor and will get grabbed when "opening" the menu.
Due to that grab, the event is not propagated to the stage,
and regular keynav does not work.

To avoid the focus getting stuck in that case, add an explicit
key-press handler that bypasses the grab.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2734>
js/ui/panelMenu.js